package com.ruoyi.workflow.service;

import com.ruoyi.workflow.domain.ApprovalRecords;
import com.ruoyi.workflow.dto.ApprovalRecordsDto;

import java.util.List;

/**
 * 审批记录Service接口
 *
 * @author 周志雄
 * @date 2024-03-15
 */
public interface IApprovalRecordsService
{
    /**
     * 查询审批记录
     *
     * @param recordId 审批记录主键
     * @return 审批记录
     */
    public ApprovalRecords selectApprovalRecordsByRecordId(Long recordId);

    /**
     * 查询审批记录列表
     *
     * @param approvalRecords 审批记录
     * @return 审批记录集合
     */
    public List<ApprovalRecords> selectApprovalRecordsList(ApprovalRecords approvalRecords);

    /**
     * 新增审批记录
     *
     * @param approvalRecords 审批记录
     * @return 结果
     */
    public int insertApprovalRecords(ApprovalRecords approvalRecords);

    /**
     * 修改审批记录
     *
     * @param approvalRecords 审批记录
     * @return 结果
     */
    public int updateApprovalRecords(ApprovalRecords approvalRecords);

    /**
     * 批量删除审批记录
     *
     * @param recordIds 需要删除的审批记录主键集合
     * @return 结果
     */
    public int deleteApprovalRecordsByRecordIds(String recordIds);

    /**
     * 删除审批记录信息
     *
     * @param recordId 审批记录主键
     * @return 结果
     */
    public int deleteApprovalRecordsByRecordId(Long recordId);

    /**
     * 根据条件来获取审批记录列表
     * @param processType
     * @param id
     * @return
     */
    List<ApprovalRecordsDto> selectByCondition(String processType, String id);

    ApprovalRecords selectByApplyId(String applyId);
}
